package com.owen.spring.cloud.seata.at.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.owen.spring.cloud.seata.at.entity.AccountTbl;
import com.owen.spring.cloud.seata.at.mapper.AccountTblMapper;
import com.owen.spring.cloud.seata.at.service.AccountTblService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.stereotype.Service;

@Service
public class AccountTblServiceImpl extends ServiceImpl<AccountTblMapper, AccountTbl> implements AccountTblService {

    @GlobalTransactional
    @Override
    public boolean save(AccountTbl entity) {
        boolean save = super.save(entity);
        int y=1/0;
        return save;
    }
}
